class Greeter {
    greeting: string;
    constructor(message: string) {
        this.greeting = message;
    }
    greet() {
        console.log(123);
        return "Hello, " + this.greeting;
    }
}

new Greeter("world");

class Point {
    private _x:number;
    private _y:number;
    constructor(x:number,y:number){
        this._x = x;
        this._y = y;
    }

    get x(): number {
        return this._x;
    }

    set x(value: number) {
        this._x = value;
    }

    get y(): number {
        return this._y;
    }

    set y(value: number) {
        this._y = value;
    }
}
class PointSon extends Point{
    constructor(x:number,y:number,name:string){
        super(x, y);
        console.log(name);
    }
}
new PointSon(1,2,"lgz");